package com.bocloud.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/12/19.
 */
public class Department implements Serializable {
    private String departmentId;//部门编号
    private String departmentName;//部门名称
    private String pid;//本部门的上级部门id
    private List<Department> children;   //用于存储子节点

    public Department() {
    }

    public Department(String departmentId, String departmentName, String pid, List<Department> children) {
        this.departmentId = departmentId;
        this.departmentName = departmentName;
        this.pid = pid;
        this.children = children;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentId='" + departmentId + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", pid='" + pid + '\'' +
                ", children=" + children +
                '}';
    }
}
